#!/bin/bash
sudo rm -rf ./lib/convert.so


convertC="convert.c"
convertH="convert.h"
if [ ! -e $convertC  ] &&  [ ! -e $convertH ]; then 
echo    $convertC "and" $convertH  "no exists"
else

gcc  -shared  $convertH     $convertC  -o  ./lib/libconvert.so

fi

libconvert="./lib/libconvert.so"

if [  -e $libconvert ];then

sudo cp $libconvert /usr/lib

else

echo  $libconvert "no exists"

fi






